<template>
  <div id="app">
    <button @click="toast">显示Loading</button>
    <button @click="close">关闭loading</button>
  </div>
</template>

<script>
import Loading from "./components/loading/index"
var instance = null;
export default {
  name: 'App',
  data(){
    return{
      show:false
    }
  },
  methods:{
    toast() {
      instance = Loading.service();
    },
    close(){
      instance.close();
    }
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
